<?php
	$posts = array();
	$posts[0] = new Post(array("CreatorName"=>"John Daily", "Post"=>"Tempus sed, feugiat vitae lacus. Quisque mollis, massa eget laoreet pulvinar, ipsum elit.", "CreationDate"=>date("g:ia, m.d.Y"))	);
	$posts[1] = new Post(array("CreatorName"=>"Lisa Simpson", "Post"=>"Tempus sed, feugiat vitae lacus. Quisque mollis, massa eget laoreet pulvinar, ipsum elit.", "CreationDate"=>date("g:ia, m.d.Y")));
	$posts[2] = new Post(array("CreatorName"=>"Liza Minelli", "Post"=>"Tempus sed, feugiat vitae lacus. Quisque mollis, massa eget laoreet pulvinar, ipsum elit.", "CreationDate"=>date("g:ia, m.d.Y")));
	$posts[3] = new Post(array("CreatorName"=>"Oscar Peterson", "Post"=>"Tempus sed, feugiat vitae lacus. Quisque mollis, massa eget laoreet pulvinar, ipsum elit.", "CreationDate"=>date("g:ia, m.d.Y")));
	$posts[4] = new Post(array("CreatorName"=>"Django Reinhardt", "Post"=>"Tempus sed, feugiat vitae lacus. Quisque mollis, massa eget laoreet pulvinar, ipsum elit.", "CreationDate"=>date("g:ia, m.d.Y")));
	$posts[5] = new Post(array("CreatorName"=>"Occam Razor", "Post"=>"Tempus sed, feugiat vitae lacus. Quisque mollis, massa eget laoreet pulvinar, ipsum elit.", "CreationDate"=>date("g:ia, m.d.Y")));
	$posts[6] = new Post(array("CreatorName"=>"Billy Green", "Post"=>"Tempus sed, feugiat vitae lacus. Quisque mollis, massa eget laoreet pulvinar, ipsum elit.", "CreationDate"=>date("g:ia, m.d.Y")));
	
	$pads = array();
	$pads[0] = array();
	$pads[0][0] = array("GUID"=>"AB", "Name"=>"John Smith", "Posts"=>$posts);
	$pads[0][1] = array("GUID"=>"ABC", "Name"=>"Davie Jones", "Posts"=>$posts);
	$pads[0][2] = array("GUID"=>"ABCD", "Name"=>"Daniel Kyle Davis", "Posts"=>$posts);
	$pads[0][3] = array("GUID"=>"ABCDE", "Name"=>"Soccer Fans", "Posts"=>$posts);
	$pads[0][4] = array("GUID"=>"ABCDEF", "Name"=>"Vikings", "Posts"=>$posts);
	$pads[0][5] = array("GUID"=>"ABCDEFG", "Name"=>"James Randel", "Posts"=>$posts);
	$pads[0][6] = array("GUID"=>"ABDEFGH", "Name"=>"Alan Dorp", "Posts"=>$posts);
	$pads[0][7] = array("GUID"=>"ABCEFGHI", "Name"=>"Dennis Trent", "Posts"=>$posts);
	$pads[0][8] = array("GUID"=>"ABCDFGHIJ", "Name"=>"Carmichael Scott", "Posts"=>$posts);
	$pads[0][9] = array("GUID"=>"ABCDEGHIJK", "Name"=>"David Wallace", "Posts"=>$posts);
	$pads[0][10] = array("GUID"=>"ABCDEHIJKL", "Name"=>"Ford Truckers", "Posts"=>$posts);
	$pads[0][11] = array("GUID"=>"ABCDEFGJLKM", "Name"=>"Ichibod Crane", "Posts"=>$posts);
	$pads[1] = array();
	$pads[1][0] = array("GUID"=>"AB1", "Name"=>"Gordon Brown", "Posts"=>$posts);
	$pads[1][1] = array("GUID"=>"ABC1", "Name"=>"Lisa Amero", "Posts"=>$posts);
	$pads[1][2] = array("GUID"=>"ABCD1", "Name"=>"C# Pals", "Posts"=>$posts);
	$pads[1][3] = array("GUID"=>"ABCDE1", "Name"=>"Tom Cruise", "Posts"=>$posts);
	$pads[1][4] = array("GUID"=>"ABCDEF1", "Name"=>"Mike Meyers", "Posts"=>$posts);
	$pads[1][5] = array("GUID"=>"ABCDEFG1", "Name"=>"Conan O'Brien", "Posts"=>$posts);
	$pads[1][6] = array("GUID"=>"ABDEFGH1", "Name"=>"Vince Thorp", "Posts"=>$posts);
	$pads[1][7] = array("GUID"=>"ABCEFGHI1", "Name"=>"Orville Grunt", "Posts"=>$posts);
	$pads[1][8] = array("GUID"=>"ABCDFGHIJ1", "Name"=>"Jacey Pennet", "Posts"=>$posts);
	$pads[1][9] = array("GUID"=>"ABCDEGHIJK1", "Name"=>"NFL Sunday", "Posts"=>$posts);
	$pads[1][10] = array("GUID"=>"ABCDEHIJKL1", "Name"=>"Programmers", "Posts"=>$posts);
	$pads[1][11] = array("GUID"=>"ABCDEFGJLKM1", "Name"=>"Nancy Adel", "Posts"=>$posts);
	$pads[2] = array();
	$pads[2][0] = array("GUID"=>"AB12", "Name"=>"Seattle Runners", "Posts"=>$posts);
	$pads[2][1] = array("GUID"=>"ABC12", "Name"=>"McDonalds", "Posts"=>$posts);
	$pads[2][2] = array("GUID"=>"ABCD12", "Name"=>"Stephanie Bobel", "Posts"=>$posts);
	$pads[2][3] = array("GUID"=>"ABCDE12", "Name"=>"Jackie Ranger", "Posts"=>$posts);
	$pads[2][4] = array("GUID"=>"ABCDEF12", "Name"=>"David Dennis", "Posts"=>$posts);
	$pads[2][5] = array("GUID"=>"ABCDEFG12", "Name"=>"Torvil Zuk", "Posts"=>$posts);
	$pads[2][6] = array("GUID"=>"ABDEFGH12", "Name"=>"Igby Down", "Posts"=>$posts);
	$pads[2][7] = array("GUID"=>"ABCEFGHI12", "Name"=>"Brent Furro", "Posts"=>$posts);
	$pads[2][8] = array("GUID"=>"ABCDFGHIJ12", "Name"=>"Daniel Day Lewis", "Posts"=>$posts);
	$pads[2][9] = array("GUID"=>"ABCDEGHIJK12", "Name"=>"Homer Simpson", "Posts"=>$posts);
	$pads[2][10] = array("GUID"=>"ABCDEHIJKL12", "Name"=>"Grundy Dundy", "Posts"=>$posts);
	$pads[2][11] = array("GUID"=>"ABCDEFGJLKM12", "Name"=>"Arthur Smit", "Posts"=>$posts);
	
?>
<div class="PadsContainer" id="PadsContainer">
	<table border="0" cellpadding="0" cellspacing="0">
		<?php for($row=0;$row<count($pads);$row++) { ?>
		<tr>
			<?php for($col=0;$col<count($pads[$row]);$col++) { ?>
			<td>
				<?php echo Pad::Render($pads[$row][$col]['GUID'], $pads[$row][$col]['Name'], $pads[$row][$col]['Posts']); ?>
			</td>
			<?php } ?>
		</tr>
		<?php } ?>
	</table>
</div>
<div class="RecentNewsOverlay" id="RecentNewsOverlay" style="display:none;">
	<div class="RecentNewsContainer" id="RecentNewsContainer">
		<div class="RecentNewsHeader">
			<div class="RecentNewsHeaderContents">Recent News</div>
		</div>
		<div class="RecentNewsBase"></div>
		<div class="RecentNewsContentContainer">
			
		</div>
	</div>
</div>
<script type="text/javascript" language="javascript">
<?php
$initString = "";
for($row=0;$row<count($pads);$row++) {
	for($col=0;$col<count($pads[$row]);$col++) {
		$initString .= '"'.$pads[$row][$col]["GUID"].'"';
		if (!($col==count($pads[$row])-1 && $row==count($pads)-1)) {
			$initString .= ',';
		}
	}
} ?>
InitPadBoard(<?php echo $initString;?>);
</script>